<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="DAO.UserDao" %>
<%@page import="VO.User"  %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
   <meta charset="utf-8">
    <link rel="stylesheet" type="text/css" href="css/public.css">
    <link rel="stylesheet" type="text/css" href="css/register.css">
	<title>注册</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
<script type="text/javascript">
           function reg(form){
               if(form.account.value == ""){
                   alert("用户不能为空！");
                   return false;
               }
               if(form.name.value == ""){
                   alert("姓名不能为空！");
                   return false;
               }
               if(form.tele.value == ""){
                   alert("联系电话不能为空！");
                   return false;
               }
               if(form.mail.value == ""){
                   alert("电子邮箱不能为空！");
                   return false;
               }
               if(form.password.value == ""){
                   alert("密码不能为空！");
                   return false;
               }
               if(form.repassword.value == ""){
                   alert("确认密码不能为空！");
                   return false;
               }
               if(form.password.value != form.repassword.value){
                   alert("两次密码输入不一致！");
                   return false;
               }
               
               
           }
         </script>
<body style="text-align: center;">
	
<div id="mainbody">
<div class="title">
	 注册新用户
</div>
<div class="msg">
<form action="servlet/register" method="post" onSubmit="return reg(this)">
	<P>
		用&nbsp;&nbsp;户&nbsp;&nbsp;名：
		<input type="text" name="account" value="" class="text">
	</P>
	<p>
		姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：
		<input type="text" name="name" value="" class="text">
	</p>
	<p>
		手&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;机：
		<input type="text" name="tele" value="" class="text">
	</p>
	<p>
		邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱：
		<input type="text" name="mail" value="" class="text">
	</p>
	<p>
		密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：
		<input type="password" name="password" value="" class="text">
	</p>
	<p>
		确认密码：
		<input type="password" name="repassword" value="" class="text">
	</p>
	<br>
	<input type="reset" name="" value="重置">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	<input type="submit" name="" value="注册">

</form>
</div>
</div>

</body>
</html>